import React from 'react'
import { View, Text, Button as TaroButton } from '@tarojs/components'
import './index.scss'
import { ComponentsType } from '../../types/components'

export type ButtonType = ComponentsType<{
  /** 是否禁用 */
  disabled?: boolean
}>

const Button: React.FC<ButtonType> = (props) => {
  const {children, ...btnProps} = props
  return <TaroButton {...btnProps}>{children}</TaroButton>
}

export default Button
